#ifndef COMMONS_H
#define COMMONS_H
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

#define RAND_DATA_SIZE		8

#define DEEP_AUTHVERIFY_SA_ID   101801

typedef struct AuthBlob_ {
	uint8_t* data;
	uint32_t size;
} AuthBlob;

#define FREE_AUTH_BLOB(blob) do { \
    if ((blob).data != NULL) { \
        free((blob).data); \
        (blob).data = NULL; \
    } \
    (blob).size = 0; \
} while (0)

#endif //COMMONS_H